Repository navigation
Scan reopened pull requests instead of passing them unscanned - #460
Conversation
With --scm github, a pull_request run whose action was not opened or synchronize logged "Pull Request Action reopened is not a supported type" and exited 0 without scanning. The example workflow subscribes to reopened, and a required check takes the latest run on the head commit, so reopening a pull request could replace a failed Socket check with a pass on the same commit. reopened and ready_for_review now run the same comparison as opened and synchronize. Other actions and unhandled events are still skipped with exit 0, as the exit-code contract documents, but log a warning that no scan ran. pull_request_target gets its own message because it runs against the base branch, so it is not treated as pull_request. GitLab's unhandled pipeline sources log the same warning.
…'t scan A missing pull_request action or GITHUB_EVENT_NAME (or CI_PIPELINE_SOURCE on GitLab) now gets its own warning instead of "action 'None' is not scanned", whose advice to drop the action from the workflow didn't apply. The skip warnings list issue_comment as handling ignore commands, not as a scanned event. Tests pin push, workflow_dispatch and issue_comment routing.
Move the Skipped events section below the scan-type paragraphs it had split. State the required-check risk without claiming which run GitHub picks. Explain that push on every branch also runs the job on a pull request's head commit as a full scan that exits 0, and give two ways to keep that run from satisfying a required check.
…l-requests # Conflicts: # CHANGELOG.md
…l-requests # Conflicts: # CHANGELOG.md
2.13.2 was released from main, so this change needs the next patch version.
|
bugbot run |
PR SummaryMedium Risk Overview With The GitHub Actions examples are split: PR-only Tests add Reviewed by Cursor Bugbot for commit a5b1c93. Configure here. |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a5b1c93. Configure here.
# Conflicts: # CHANGELOG.md # docs/ci-cd.md
Summary
With
--scm github, reopened pull requests and pull requests marked ready for review now follow the same comparison path as opened and synchronized pull requests.0. GitHub warnings give specific guidance for missing event context,pull_request_target, andmerge_group.socket-securitycheck in a PR-only workflow. Separate workflows retain branch scans, default-branch baseline updates, and PR ignore commands.Verification
GITHUB_EVENT_PATH. Reopened and ready-for-review PRs compare and exit0with a clean result or1with an existing blocker under--strict-blocking. The tests also verify the security comment for the blocker and confirm a closed PR runs neither scan path.actionlint.Release
Ships in 2.14.0. Merge order: #461 → #462 → #460 → #464 → #465 → #463. Merged together in that order on
mainat #459, the six pass the full test suite andruff check.mainrequires branches to be up to date, so update each PR frommainafter the previous merge.CHANGELOG.mdwill conflict each time: combine the bullets under the existing## 2.14.0subsections (Upgrade notes, Changed, Fixed, Documentation) by hand rather than taking either side.This is 3 of 6, after #462. Updating from
mainthen conflicts indocs/ci-cd.md, in the paragraph after "Findings block only when a diff comparison runs". Keep this PR's sentence with the Skipped events link, followed by #461/#462's sentence: "The CLI treats comparisons marked incomplete or returned with missing or invalid package lists as infrastructure failures. With--strict-blocking, incomplete existing-alert data is also an infrastructure failure." The table below it merges cleanly.Review focus: The PR job keeps the
socket-securityjob name, so copying it to the existing workflow path leaves branch protection unchanged. The push workflow must be added in the same change, or default-branch baselines stop updating; the upgrade note and CI guide now say so.Public Changelog
With
--scm github, reopened pull requests and pull requests marked ready for review now run the PR scan. Skipped GitHub events and GitLab pipeline sources warn when no scan ran. The GitHub Actions examples put the PR check in a dedicated workflow.Fixes: CE-512